<?php

namespace app\common\library;

class Code
{
    /**
     * 系统码 0~-1000
     */
    public const SUCCESS = array(0, '操作成功');
    public const FAIL = array(-1, '操作失败');
    public const LOGIN_EXPIRES = array(-2, '登录超时');
    public const INVALID_TOKEN_PROVIDED = array(-3, '令牌无效');
    public const PARAMS_ERR = array(-4, '参数错误');
    public const REQUEST_FREQUENT = array(-5, '当前请求人数过多，请稍后再试');

    /**
     * 用户 -1000~-1100
     */
    public const ACCOUNT_ERR = array(-1000, '账号不存在');
    public const PASSWORD_ERR = array(-1000, '密码不正确');
}